// ------------------------------------------------------ Naming ------------------------------------------------------
Name Dassault Rafale
ShortName Rafale
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconrafale
Model faf.rafale
Texture rafale
//Third Person Camera Distance
CameraDistance 20.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 0
HasGear True
ModelScale 1
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 1.5
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.4
TurnRightSpeed 1.4
//Pitch modifiers
LookUpSpeed 1.15
LookDownSpeed 1.15

RollLeftSpeed 1.8
RollRightSpeed 1.8
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.32
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -40 -10 -31
WheelPosition 1 -40 -10 31
WheelPosition 2 77 -10 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 54 0 0 core metalPropeller
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
ShootParticlesPrimary flansmod.fmflame 0 0 0
Secondary Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ShootDelaySecondary 20
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary False
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary FullAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 62 37 14 core minigun
ShootPointSecondary 2 19 -75 leftWing
ShootPointSecondary -43 27 -122 leftWing
ShootPointSecondary 2 19 75 rightWing
ShootPointSecondary -43 27 122 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 4
AllowAllAmmo False
AddAmmo AIM9
AddAmmo aim7
AddAmmo aim9x
AddAmmo aim120
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 6000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 70 44 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound PlaneA
StartSoundLength 60
PropSound PlaneB
PropSoundLength 47
ShootSoundPrimary JetShoot
ShootSoundSecondary RocketFire2
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 advancedMetalCockpit
AddRecipeParts coreWheel 2 wheel
AddRecipeParts nose 1 metalNose
AddRecipeParts rightWing 1 metalWingSmall
AddRecipeParts leftWing 1 metalWingSmall
AddRecipeParts tail 1 metalTail
AddRecipeParts rightWingWheel 1 wheel
AddRecipeParts leftWingWheel 1 wheel
//Dye colours are "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightBlue", "magenta", "orange", "white"
AddDye 5 white
AddDye 1 gray
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart nose 100 121 30 -11 47 22 22
SetupPart core 100 33 20 -28 88 48 56
SetupPart core 100 -43 17 -28 76 43 56
SetupPart core 100 -43 24 -37 88 21 9
SetupPart core 100 -43 24 28 88 21 9
SetupPart tail 100 -143 17 -28 100 36 56
SetupPart tail 100 -131 24 -37 88 21 9
SetupPart tail 100 -131 24 28 88 21 9
SetupPart tail 100 -167 53 -3 113 54 6
SetupPart core 100 15 45 -54 38 3 26
SetupPart core 100 15 45 28 38 3 26
SetupPart leftWing 100 -113 25 -121 125 13 84
SetupPart rightWing 100 -113 25 37 125 13 84
SetupPart tail 100 -157 40 -4 14 8 8
BulletDetection 4

CollisionPoint 168 38 0 nose
CollisionPoint 142 38 0 nose
CollisionPoint 70 38 0 core
CollisionPoint -2 38 0 core
CollisionPoint 29 45 -42 core
CollisionPoint 28 45 42 core
CollisionPoint -96 38 -13 tail
CollisionPoint -95 38 12 tail
CollisionPoint -145 91 0 tail
CollisionPoint -71 30 -64 leftWing
CollisionPoint -88 26 -118 leftWing
CollisionPoint -71 30 64 rightWing
CollisionPoint -88 26 118 rightWing


IsExplosionWhenDestroyed true
CollisionDamageEnable true
CollisionDamageThrottle 0.21
CollisionDamageTimes 100

BulletSpeed 7
BulletSpread 1

ShootParticlesPrimary cloud 0 0 0
ShootParticlesSecondary cloud 1 0 0
ShootParticlesSecondary cloud -1 0 0
ShootParticlesSecondary explode -1 0 0
ShootParticlesSecondary flame -1 0 0

ReloadSoundPrimary PG_reload
ReloadTimePrimary 80
ReloadTimeSecondary 60
ReloadSoundSecondary PlaneBomb_reload1
EngineSoundRange 1000

HasFlare True
FlareDelay 260
FlareSound Flare
TimeFlareUsing 5
LockOnToPlanes True
LockOnToVehicles True
LockOnToPlayers False
LockOnToLivings False
CanLockOnAngle 10
MaxRangeLockOn 250
LockedOnSound LockOnTarget
SoundTime 10
LockedOnSoundRange 20
LockOnSound LockOnTarget
LockOnSoundTime 10

hasAfterBurner true
//use this to rename afterburner to WEP or 110% throttle or Notleistung or whatever

//afterburner particle emitter
particleAfterBurn flansmod.fmflame 1 [-131,33,-11] [3,3,3] [3,0,0] tail
particleAfterBurn flansmod.fmflame 1 [-131,33,11] [3,3,3] [3,0,0] tail

//multiplier to fuel consumption when afterburner on
afterBurnFuelPenalty 3